#include "JSBridge.h"
#include <QStringList>

JSBridge::JSBridge() : QObject()
{

}
//--------------------------------------------------------------------------------
JSBridge::~JSBridge()
{

}
//--------------------------------------------------------------------------------
void JSBridge::onMapClicked(QString coordinates)
{
    qDebug("onMapClicked: " + coordinates.toLatin1());

    QStringList coordList = coordinates.split(",");
    emit mapClicked(coordList.at(0).toFloat(), coordList.at(1).toFloat());
}
//--------------------------------------------------------------------------------
